import type { PropType } from 'vue';
import type { IContext, IParam } from '@/core';
declare type modeType = 'string' | 'number';
export const dropdownListProps = {
	name: {
		type: String,
	},
	value: {
		type: [String, Number],
	},
	disabled: {
		type: Boolean,
	},
	readonly: {
		type: Boolean,
	},
	placeholder: {
		type: String,
	},
	data: {
		type: Object as PropType<IParam>,
	},
	context: {
		type: Object as PropType<IContext>,
	},
	viewParams: {
		type: Object as PropType<IParam>,
	},
	localContext: {
		type: Object as PropType<IParam>,
	},
	localParam: {
		type: Object as PropType<IParam>,
	},
	multiple: {
		type: Boolean,
		default: false,
	},
	codeListTag: {
		type: String,
	},
	codeListType: {
		type: String,
	},
	valueSeparator: {
		type: String,
		default: ',',
	},
	valueType: {
		type: String as PropType<modeType>,
		default: 'string',
	},
};
